package service.impl;

import dao.RoleMapper;
import dao.UserMapper;
import entity.PermissionRole;
import entity.Role;
import entity.TreeNode;
import entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import service.RoleService;
import service.UserService;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public List<Role> findAllRole() {
        return roleMapper.findAllRole();
    }

    @Override
    public Integer insertOne(Role role) {
        return roleMapper.insertOne(role);
    }

    @Override
    public Integer deleteRoleByID(String id) {
        return roleMapper.deleteRoleByID(id);
    }

}
